package com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;


/**
 * 三方平台提现表
 */
@TableName(value = "finance_third_withdraw", autoResultMap = true)
@KeySequence("finance_third_withdraw_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class FinanceThirdWithdrawDO extends TenantBaseDO {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 提现单号
     */
    private String withdrawNo;

    private Long apartmentId;

    private String accountName;

    private String accountNo;

    private Long accountId;

    /**
     * 三方平台账号
     */
    private String thirdId;
    private String thirdWithdrawNo;

    private String voucherNo;

    private Long balance;
    private Long fee;

    private String  bankNo;
    private String  bankName;

    private Integer accType;

    private String status;

    private LocalDateTime withdrawTime;

    private String reason;

    private LocalDate receiveDate;

}
